package com.atguigu.gulimail.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/*
*       1开启服务注册发现
*           （在配置中心中配置nacos的注册中心的地址）
*
*
*
* */

@EnableDiscoveryClient  //开启网关的服务注册发现客户端,
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})//排除数据源相关的配置
public class GulimailGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimailGatewayApplication.class, args);
    }

}
